<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>一秒钟点击一次</title>
    <script src="jquery.js"></script>
</head>
<body>
<a href="https://www.xiaobangcai.com" class="a" target="_blank">111</a>
<a href="https://www.xiaobangcai.com" class="a" target="_blank">111</a>
<a href="https://www.xiaobangcai.com" class="a" target="_blank">111</a>
<a href="https://www.xiaobangcai.com" class="a" target="_blank">111</a>

    <script>

        function test(){
            var index = 0;
            var aList = document.getElementsByClassName("a");
            var btn;
            var init = setInterval(()=>{
                btn = aList[index];
                // 兼容IE
                if(document.all) {
                    btn.click();
                }
                // 兼容其它浏览器
                else {
                    var e = document.createEvent("MouseEvents");
                    e.initEvent("click", true, true);
                    btn.dispatchEvent(e);
                }
                if(index >= aList.length){
                    clearInterval(init);
                }
                index++;
            },300000); // 50秒后执行	*/

        }
        test();


    </script>
</body>
</html>